import request from "./request";
import { IMAGE_UPLOAD_URL } from "../config";

const imageUpload = async (file) => {
    return await request({
        url: `${IMAGE_UPLOAD_URL}?output=json&scene=&path=`,
        method: "post",
        headers: {
            'Content-Type': 'multipart/form-data',
        },
        data: file,
    })
}

export default {
    imageUpload,
};
